/**
 *
 */
package com.engine;

import com.engine.Mangers.ActionManger;
import com.engine.Mangers.EndProjects;
import com.engine.Mangers.JoinManger;
import com.engine.Mangers.ProjectInitiator;
import com.engine.Mangers.RuleManger;
import com.engine.Mangers.TaskManger;
import com.util.AWFLogger;

/**
 * @author kareem_yehya
 * @version 1.0.0.1
 * @since 25 March 2009 <br>
 * 
 * <br>
 *        This Class Resposible for:- <br>
 *        Create Tow Threads one for ActionManger and another for TaskManger 2- start both threads WFTAsk not lazy and type inside it too
 * 
 */
public class Engine
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		// TODO Auto-generated method stub
		ActionManger actionManger = new ActionManger();
		TaskManger taskManger = new TaskManger();
		RuleManger rulemanger = new RuleManger();
		ProjectInitiator projectInitiator = new ProjectInitiator();
		EndProjects EndProjects = new EndProjects();
		JoinManger joinManger = new JoinManger();

		Thread initiatorThread = new Thread(projectInitiator);
		initiatorThread.start();

		// Thread actionsThread = new Thread(actionManger);
		// actionsThread.start();
		//
		// Thread tasksThread = new Thread(taskManger);
		// tasksThread.run();/*start();*/

		Thread ruleThread = new Thread(rulemanger);
		ruleThread.start();

		Thread endProjectsThread = new Thread(EndProjects);
		endProjectsThread.start();

		Thread joinThread = new Thread(joinManger);
		joinThread.start();

		System.out.println("All Process Hve Been Restarted Successfully");
		AWFLogger.info("All Process Hve Been Restarted Successfully");

	}

}
